//package com.allan.springboot_wms.config;
//
//import org.springframework.context.annotation.ComponentScan;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
//import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
//
//@Configuration
//@ComponentScan
//public class SpringWebMvcConfig extends WebMvcConfigurationSupport {
//    @Override
//    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        registry.addResourceHandler("/**").addResourceLocations("classpath:/**");
//    }
//
//    //请求与页面映射
////    @Override
////    protected void addViewControllers(ViewControllerRegistry registry) {
////        //urlPath:请求
////        //setViewName:html页面
////        registry.addViewController("/").setViewName("index.html");
////    }
//}
